package com.common.platform.base.enums;

import lombok.Getter;

@Getter
public enum CommonStatus {

    ENABLE("ENABLE","启用"),DISABEL("DISABEL","禁用");

    String code;
    String message;

    CommonStatus(String code,String message){
        this.code = code;
        this.message=message;
    }
    public static String getDescription(String status){
        if(status==null){
            return "";

        }else{
            for(CommonStatus s:CommonStatus.values()){
                if(status.equals(s.getCode())){
                    return s.getMessage();
                }
            }
        }
        return "";
    }
}
